package com.hl.springboot4.controller;

import com.hl.springboot4.util.R;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @ClassName ExceptionController
 * @Description TODO
 * @Author libowen
 * @Date 2025年03月06日 14:32
 * @Version 1.0
 */
@RestControllerAdvice
public class ExceptionController {
    @ExceptionHandler(Exception.class)
    public R handlerException(Exception e){
        return R.fail("请检查网络！(全局操作)");
    }
}
